<@>layout("/common/default.html"){
<!-- 顶部开始 -->
<script type="text/javascript" src="${ctxPath}/static/jim/date.js"></script>
<div class="container">
    <div class="logo"><a href="left-menu-index.html">
        ${@com.leonzx.base.utils.TitleNameConstants.INDEX_NAME}
    </a></div>
    <div class="left_open">
        <i title="展开/关闭菜单栏" class="iconfont">&#xe699;</i>
    </div>
    <!-- <ul class="layui-nav left fast-add" lay-filter="">
         <li class="layui-nav-item">
             <a href="javascript:;">+新增</a>
             <dl class="layui-nav-child"> &lt;!&ndash; 二级菜单 &ndash;&gt;
                 <dd><a onclick="x_admin_show('资讯','http://www.baidu.com')"><i class="iconfont">&#xe6a2;</i>资讯</a></dd>
                 <dd><a onclick="x_admin_show('图片','http://www.baidu.com')"><i class="iconfont">&#xe6a8;</i>图片</a></dd>
                 <dd><a onclick="x_admin_show('用户','http://www.baidu.com')"><i class="iconfont">&#xe6b8;</i>用户</a></dd>
             </dl>
         </li>
     </ul>-->
    <ul class="layui-nav right" lay-filter="">
        <li class="layui-nav-item" style="float: right">
            <a href="javascript:void(0);">${shiro.getUser().name}</a>
            <dl class="layui-nav-child"> <!-- 二级菜单 -->
                <dd>
                    <a onclick="x_admin_show('个人信息','${ctxPath}/userpermission/user/edit?id=${shiro.getUser().id}',500,260 )">个人信息</a>
                </dd>
                <dd>
                    <a onclick="x_admin_show('主题设置','${ctxPath}/theme/edit', 400, 200)">主题设置</a>
                </dd>
                <dd>
                    <a onclick="x_admin_show('邮箱设置','${ctxPath}/userpermission/user/userMailEdit?userId=${shiro.getUser().id}',500,400 )">邮箱设置</a>
                </dd>
                <dd><a href="${ctxPath}/logout">退出</a></dd>
            </dl>
        </li>
        <!-- <li class="layui-nav-item to-index"><a href="/">前台首页</a></li>-->
    </ul>

</div>
<!-- 顶部结束 -->
<!-- 中部开始 -->
<!-- 左侧菜单开始 -->
<div class="left-nav">
    <div id="side-nav">
        <ul id="nav">
            <#menu val="${menus}" ctx="${ctxPath}" top="0"></#menu>
        </ul>
    </div>
</div>
<!-- <div class="x-slide_left"></div> -->
<!-- 左侧菜单结束 -->
<!-- 右侧主体开始 -->
<div class="page-content">
    <div class="layui-tab tab" lay-filter="xbs_tab" lay-allowclose="false">
        <ul class="layui-tab-title">
            <li class="home"><i class="layui-icon">&#xe68e;</i>首页</li>
        </ul>
        <div class="layui-tab-content">
            <div class="layui-tab-item layui-show">
                <!--<iframe src='./welcome.jsp' frameborder="0" scrolling="yes" class="x-iframe"></iframe>-->
            </div>
        </div>
    </div>
</div>
<div class="page-content-bg">
</div>
<!-- 右侧主体结束 -->
<!-- 中部结束 -->
<!-- 底部开始 -->
<div class="footer">
    <div class="copyright">Copyright ©2018 力鸿智信（北京）科技有限公司</div>
</div>
<!-- 底部结束 -->
<script>
    var ip = '${serviceIp}';
    var port = '${port}';
    var password = '';
    var username = '${shiro.getUser().username}';
    var name = '${shiro.getUser().name}';
    var userId = '${shiro.getUser().id}';

    $(function () {
        indexMenus();//初始化加载即时通讯弹出层
        initLayIm('${ctxPath}', userId, ip, port, username, password, name);//初始化即时通讯事件
    });
</script>
<@>}